//
//  NSDictionary+RITLNetWorking.m
//  NongWanCloud
//
//  Created by YueWen on 2018/2/10.
//  Copyright © 2018年 YueWen. All rights reserved.
//

#import "NSDictionary+RITLNetWorking.h"
#import "NWNetworkGeneralParamters.h"

#import "RITLKit.h"

@implementation NSDictionary (RITLNetWorking)

+ (NSDictionary *)ritlNetworkExtension
{
    NSMutableDictionary *parametersInfo = [NSMutableDictionary dictionaryWithCapacity:5];
    
    [parametersInfo addEntriesFromDictionary:NWNetworkGeneralParamters.generalParamters];
//    [parametersInfo addEntriesFromDictionary:NWNetworkGeneralParamters.extendParamters];
    return parametersInfo;
}



+ (NSDictionary *)ritl_AppendExtensionAtData:(NSDictionary *)data
{
    if (!data) return self.ritlNetworkExtension;
    
    NSMutableDictionary *append = [NSMutableDictionary dictionaryWithDictionary:data];
    /// 追加
    [append addEntriesFromDictionary:self.ritlNetworkExtension];
    
    return append.copy;
}

@end

